<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/register.css">
<body>
  
  <div class="invisible" role="alert">
    A simple danger alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
  </div>
    <div class="card">
        <h5 class="card-header">注册界面</h5>
        <form class="reg" action="/registerDone" method="POST">
            <div class="form-group">
              <label for="exampleInputEmail1">用户名：</label>
              <input type="text" class="form-control" id="username" aria-describedby="emailHelp" name="username">
            </div>
            <div class="form-group">
              <label for="exampleInputPassword1">密码：</label>
              <input type="password" class="form-control" id="password" name="password">
              <!-- <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small> -->
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">确认密码：</label>
                <input type="password" class="form-control" id="confirmPassword" name="confirmPassword">
                <!-- <small id="emailHelp" class="form-text text-muted" onclick="tips()">两次密码不一样</small> -->
              </div>
            <!-- <div class="form-group form-check">
              <input type="checkbox" class="form-check-input" id="exampleCheck1">
              <label class="form-check-label" for="exampleCheck1">记住我</label>
            </div> -->
            <div class="sub">
                <button type="submit" class="btn btn-primary">注册</button>
                <button type="button" class="btn btn-primary"  onclick="jump()">取消注册</button>
            </div>
          </form>
      </div>
      <link rel="stylesheet" href="/js/jquery-3.6.0.min.js">
      <link rel="stylesheet" href="/js/bootstrap.min.js">
      <script>
        function jump(){
          window.location.href='/login';
        }
      </script>
</body>
</html>